package com.dongdongshop.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("comment")
public class Comment {

    @Id
    private String id;

    @Field("userId") // 用户id
    private String userId;

    @Field
    private String sellerId;

    @Field("title") //评论主题
    private String title;

    @Field("grade") //评论等级
    private String grade;

    @Field // 评论图片
    private String image;

    @Field // 评论内容
    private String content;

    @Field // 评论点赞
    private String like;

    @Field  // 评论时间
    private Date date;

}
